import axios from '@/libs/api.request'

export const getSupplierList = () => {
  return axios.request({
    url: 'supplier',
    method: 'get'
  })
}

export const getCategoryList = (parentId) => {
  return axios.request({
    url: 'category',
    method: 'get',
    params: {
      parent_id: parentId     
    }
  })
}

export const getClientList = () => {
  return axios.request({
    url: 'client',
    method: 'get'
  })
}

export const getGuestList = () => {
  return axios.request({
    url: 'guest',
    method: 'get'
  })
}

export const getManagerList = () => {
  return axios.request({
    url: 'manager',
    method: 'get'
  })
}

export const getRoleList = () => {
  return axios.request({
    url: 'role',
    method: 'get'
  })
}

export const getGuideList = () => {
  return axios.request({
    url: 'guide',
    method: 'get'
  })
}

export const getBranchList = () => {
  return axios.request({
    url: 'branch',
    method: 'get'
  })
}